﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class TableInfoBLL: BaseBLL
    {
        public TableInfoBLL(LoginInfo info)
        {
            loginInfo = info;
        }
        
        public List<string> GetTableColumns(string table)
        {
            try
            {
                return new TableInfoDAL(loginInfo).GetTableColumns(table);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public IList<TableInfo> GetStagingTableInfo(string schemaName, string tableName)
        {
            return new TableInfoDAL(loginInfo).GetStagingTableInfo(schemaName, tableName);
        }
         
        public IList<TableInfo> GetStagingTableInfo(string viewID)
        {
            return new TableInfoDAL(loginInfo).GetStagingTableInfo(viewID);
        }
        public IList<ModelViewConfig> GetModelViewInfo(string modelID, string version)
        {
            return new TableInfoDAL(loginInfo).GetModelViewInfo(modelID, version);
        } 
    }
}
